package com.example.demo.config;

import org.apache.activemq.command.ActiveMQTopic;
import org.springframework.stereotype.Component;

import javax.jms.Topic;

/**
 * @AUTHOR LYF
 * @DATE 2022/2/13
 * @VERSION 1.0
 * @DESC
 */
@Component
public class TopicFactory {
    public Topic createTopic(String name){
        return new ActiveMQTopic(name);
    }
}
